﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceiptInquiryQuery.aspx.cs" Inherits="WMS6.Web.Inbound.ReceiptInquiryQuery" meta:resourcekey="Page" %>

<%@ Register src="../UserControls/MultipleSelectControl.ascx" tagname="MultipleSelectControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>ReceiptInquiryQuery</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
  <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>    
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script> 
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>    
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
        
        //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
	    
	    //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货品分类
        function selectSkuClassID()
        {
            var rtnValue = popModalWindow('../Configuration/SkuClassQuery.aspx?action=txtSkuClassID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuClassID").focus();
                document.getElementById("txtSkuClassID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货品
        function selectSKU()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSku','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSku").focus();
                document.getElementById("txtSku").value = rtnValue;
            }
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
	    
    </script>
</head>
<body>
    <form id="F4040" runat="server">
    <div>
            <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblReceiptQuery" runat="server" Text="入库查询" CssClass="hover" 
                    meta:resourcekey="lblReceiptQuery"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
         </div>
            <div id="div_query">
            <table width="580px" cellpadding="0" cellspacing="0" >
                <tr>
                    <td style="width:180px">
                        <asp:Label CssClass="label" ID="lblReceiptID" runat="server" Text="入库通知单号" 
                            meta:resourcekey="lblReceiptID"></asp:Label>
                    </td>
                    <td style="width:30px">
                        &nbsp;
                    </td>
                    <td style="width:160px">
                        &nbsp;
                    </td>
                    <td style="width:200px"></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtReceiptID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlReceiptID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlReceiptID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblPoID" runat="server" 
                            Text="采购订单号" meta:resourcekey="lblPoID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtPoID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPoID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlPoID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExternReceiptID" runat="server" 
                            Text="外部入库单号" meta:resourcekey="lblExternReceiptID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExternReceiptID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExternReceiptID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExternReceiptID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlExternReceiptID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblReceiptType" runat="server" Text="类型" 
                            meta:resourcekey="lblReceiptType"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%--<asp:DropDownList ID="ddlReceiptType" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlReceiptType"></asp:DropDownList>--%>
                            <uc1:MultipleSelectControl ID="MSCReceiptType" runat="server" />    
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlReceiptTypeOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlReceiptTypeOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblOwnerID" runat="server" Text="货主代码" 
                            meta:resourcekey="lblOwnerID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOwnerID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlOwnerID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblSku" runat="server" Text="货品代码" 
                            meta:resourcekey="lblSku"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSku" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtSku"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSKU();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSku" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlSku">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExternalLot" runat="server" Text="外部批号" 
                            meta:resourcekey="lblExternalLot"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExternalLot" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExternalLot"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExternalLot" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlExternalLot">
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblVendorID" runat="server" Text="供应商代码" 
                            meta:resourcekey="lblVendorID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtVendorID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlVendorID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlVendorID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblSkuClassID" runat="server" Text="货品分类代码" 
                            meta:resourcekey="lblSkuClassID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSkuClassID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtSkuClassID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuClassID();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSkuClassID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlSkuClassID">
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExpectedReceiptDate" runat="server" 
                            Text="预期收货日期" meta:resourcekey="lblExpectedReceiptDate"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExpectedReceiptDate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExpectedReceiptDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpectedReceiptDate)" />
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExpectedReceiptDate" runat="server" 
                            CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" 
                            meta:resourcekey="ddlExpectedReceiptDate">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div1">
                            <asp:TextBox ID="txtExpectedReceiptDate2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtExpectedReceiptDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtExpectedReceiptDate2)"/>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblReceiptDate" runat="server" Text="实际收货日期" 
                            meta:resourcekey="lblReceiptDate"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtReceiptDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlReceiptDate" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div2,img3);" 
                            meta:resourcekey="ddlReceiptDate">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div2">
                            <asp:TextBox ID="txtReceiptDate2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReceiptDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img3" runat="server" onclick="setday(this,txtReceiptDate2)"/>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblIsActive" runat="server" Text="是否启用" 
                            Visible="False" meta:resourcekey="lblIsActive"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlIsActive" runat="server" CssClass="mediumselectbox" 
                            Visible="False" meta:resourcekey="ddlIsActive">
                        </asp:DropDownList>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIsActiveOper" runat="server" CssClass="selectbox" 
                            Visible="False" meta:resourcekey="ddlIsActiveOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>                
            </table>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>"
                            CssClass="button" Enabled="False" OnClick="btnSearch_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" Text="<%$Resources:ButtonResource,btnNew%>"
                            CssClass="button" Enabled="False" Visible="False" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='ReceiptInquiryList.aspx?from=list';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='ReceiptInquiryList.aspx?from=query&export=y';return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
    </div>
        <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />
    <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>   
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>